<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:n="http://java.sun.com/jsf/composite/nemesis"
                template="./../modelo/padrao.xhtml">
    <ui:define name="titulo">Editar Bairro</ui:define>
    <ui:define name="corpo">
        <f:metadata>
            <f:viewParam name="id" value="#{bairroEditarControle.id}"/>
        </f:metadata>
        <h:form id="formEditar">
            <n:barraEditar controle="#{bairroEditarControle}"/>
            <h:panelGrid columns="2">
                Nome
                <h:inputText value="#{bairroEditarControle.objeto.nome}" size="50"/>
                Cidade
                <h:selectOneMenu value="#{bairroEditarControle.objeto.cidade}"
                                 converter="conversorCidade"
                                 style="cursor: pointer;">
                    <f:selectItem itemValue="#{null}" itemLabel="Selecione"/>
                    <f:selectItems value="#{sessao.cidades}"
                                   var="cidade"
                                   itemLabel="#{cidade.nome}"
                                   itemValue="#{cidade}"/>
                </h:selectOneMenu>
            </h:panelGrid>
        </h:form>
    </ui:define>
</ui:composition>